﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using API;
using GanoESB;
using System.ServiceModel;
using Newtonsoft.Json;

namespace ServiceTest
{
    public partial class Form1 : Form
    {
        private IMessageBus bus;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {           
            SayHelloMessage msg = new SayHelloMessage();
            msg.Name = textBox1.Text;

            SoapClient client = new SoapClient("", "http://localhost/messagebus");

            MessageResponse<string> resp = client.Execute<SayHelloMessage, string>(msg);

            MessageBox.Show(resp.Result);
        }

    }
}
